package com.green.service.manage.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.green.common.page.Pagination;
import com.green.dao.manage.JoinPackageDao;
import com.green.model.manage.JoinPackage;
import com.green.service.common.impl.BaseServiceImpl;
import com.green.service.manage.JoinPackageService;

@Repository("joinPackageService")
public class JoinPackageServiceImpl extends BaseServiceImpl implements JoinPackageService {
	@Autowired
	private JoinPackageDao joinPackageDao;
	@Override
	public int insertJoinPackage(JoinPackage ct) {
		return joinPackageDao.insertJoinPackage(ct);
	}

	@Override
	public int updateJoinPackage(JoinPackage ct) {
		return joinPackageDao.updateJoinPackage(ct);
	}

	@Override
	public int deleteJoinPackage(Map<String, Object> param) {
		return joinPackageDao.deleteJoinPackage(param);
	}

	@Override
	public JoinPackage getJoinPackageById(String id) {
		return joinPackageDao.getJoinPackageById(id);
	}

	@Override
	public List<JoinPackage> getJoinPackageList(Map<String, Object> param) {
		return joinPackageDao.getJoinPackageList(param);
	}

	@Override
	public Pagination<JoinPackage> getJoinPackagePagination(
			Pagination<JoinPackage> pag, Map<String, Object> param) {
		return this.joinPackageDao.getJoinPackagePagination(pag, param);
	}
	
	
}
